/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.tintuna.cca.property;

import java.lang.reflect.InvocationTargetException;
import org.openide.nodes.PropertySupport;
import org.tintuna.cca.data.Row;
import org.tintuna.cca.node.RowNode;

/**
 *
 * @author bsmith
 */
public class MerchantProperty extends PropertySupport.ReadWrite<String> {

    Row row;

    public MerchantProperty(Row row) {
        super(RowNode.MERCHANT_PROPERTY, String.class, "Transaction marchant", "The merchant where transaction done");
        this.row = row;
    }

    @Override
    public String getValue() throws IllegalAccessException, InvocationTargetException {
        return row.getMerchant();
    }

    @Override
    public void setValue(String t) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
